var express = require('express');
var router = express.Router();
var artices=require('../controllers/articescontroller')
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});
router.get('/article',function(req,res,next){
    // console.log('article');
    artices.article(req,res);
});
router.get('/author', function(req, res, next) {
    // console.log('author')
  artices.author(req,res);
});
router.get('/comment', function(req, res, next) {
  // console.log('comment')
artices.comment(req,res);
});
router.get('/commentown', function(req, res, next) {
  console.log('commentown')
artices.commentown(req,res);
});
router.get('/addFabulous', function(req, res, next) {
  console.log('addFabulous')
artices.addFabulous(req,res);
});
router.get('/delFabulous', function(req, res, next) {
  console.log('delFabulous')
artices.delFabulous(req,res);
});

module.exports = router;